package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.User;

import java.util.List;
import java.util.Map;

/**
 * @author qzh
 * @create 2020-01-31 2020/1/31
 */
public interface UserService {

    public User findUserByUsername(String username);

    List<Map<String, Object>> findIsFineCount();


    //2.添加用户信息
    public void add(User user, Integer[] roleIds);

    //3.添加角色信息
    public void addRole(Integer[] checkitemIds, Integer user_id);
    //4.首先进行用户的分页查询
    public PageResult pageQuery(QueryPageBean queryPageBean);

    //5.回显数据
    public List<Integer> findByUId(Integer id);
}
